AddValue
TheAddValue
method adds a value of the specified type to the currently focused property.
ODStorageUnit AddValue (in ODValueType type);
type
- The type of value to be added.
- return value
- A reference to this storage unit.
DISCUSSION
If the focused property does not already contain a value of the specified type, the new value is added and this storage unit is focused on the newly added value. Otherwise, this storage unit is focused on the existing value with the specified value type.EXCEPTIONS
kODErrIllegalNullValueTypeInput
- The specified value type is null.
kODErrInvalidValueType
- The specified value type is improperly formed or illegal.
kODErrUnfocusedStorageUnit
- This storage unit is not focused on a property.
kODErrZeroRefCount
- This storage unit has a reference count of 0.
SEE ALSO
TheODValueType
type (page 904).
TheODStorageUnit::Remove
method (page 707).
Listing 2-41 on page 100 in OpenDoc Cookbook.
Listing 2-43 on page 103 in OpenDoc Cookbook.
Listing 2-47 on page 110 in OpenDoc Cookbook.
"Creating Properties and Values" on page 274 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help